const express = require('express');
const router = express.Router();

// 健康检查路由
router.get('/', (req, res) => {
  const packageInfo = require('../package.json');
  res.json({
    status: 'ok',
    timestamp: new Date().toISOString(),
    uptime: process.uptime(),
    remark: '服务器运行正常',
    author: packageInfo.author,
    version: packageInfo.version
  });
});

module.exports = router;